/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.crossriver.crgis.database.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * This class is used by
 * {@link com.crossriver.crgis.database.service.http.DocumentsServiceSoap}.
 * </p>
 *
 * @author    Wole Adetiba
 * @see       com.crossriver.crgis.database.service.http.DocumentsServiceSoap
 * @generated
 */
public class DocumentsSoap implements Serializable {
	public static DocumentsSoap toSoapModel(Documents model) {
		DocumentsSoap soapModel = new DocumentsSoap();

		soapModel.setDocumentId(model.getDocumentId());
		soapModel.setUserId(model.getUserId());
		soapModel.setApplicationId(model.getApplicationId());
		soapModel.setDocumentUpload(model.getDocumentUpload());

		return soapModel;
	}

	public static DocumentsSoap[] toSoapModels(Documents[] models) {
		DocumentsSoap[] soapModels = new DocumentsSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static DocumentsSoap[][] toSoapModels(Documents[][] models) {
		DocumentsSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new DocumentsSoap[models.length][models[0].length];
		}
		else {
			soapModels = new DocumentsSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static DocumentsSoap[] toSoapModels(List<Documents> models) {
		List<DocumentsSoap> soapModels = new ArrayList<DocumentsSoap>(models.size());

		for (Documents model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new DocumentsSoap[soapModels.size()]);
	}

	public DocumentsSoap() {
	}

	public String getPrimaryKey() {
		return _documentId;
	}

	public void setPrimaryKey(String pk) {
		setDocumentId(pk);
	}

	public String getDocumentId() {
		return _documentId;
	}

	public void setDocumentId(String documentId) {
		_documentId = documentId;
	}

	public String getUserId() {
		return _userId;
	}

	public void setUserId(String userId) {
		_userId = userId;
	}

	public String getApplicationId() {
		return _applicationId;
	}

	public void setApplicationId(String applicationId) {
		_applicationId = applicationId;
	}

	public String getDocumentUpload() {
		return _documentUpload;
	}

	public void setDocumentUpload(String documentUpload) {
		_documentUpload = documentUpload;
	}

	private String _documentId;
	private String _userId;
	private String _applicationId;
	private String _documentUpload;
}